﻿<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<tblContent>
				<nContentKey/>
				<nContentPrimaryId/>
				<nVersion/>
				<cContentForiegnRef/>
				<cContentName/>
				<cContentSchemaName>Module</cContentSchemaName>
				<cContentXmlBrief>
					<Content moduleType="Sitemap" box="" title="" link="" linkType="internal" linkText="More links" cols="1" descriptions="false" position=""/>
				</cContentXmlBrief>
				<cContentXmlDetail/>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
				<bCascade/>
			</tblContent>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind id="cModuleTitle" nodeset="tblContent/cContentName" required="false()" type="string"/>
		<bind nodeset="tblContent/cContentXmlBrief/Content">
			<bind id="cPosition" nodeset="@position" required="true()" type="string"/>
			<bind id="cModuleType" nodeset="@moduleType" required="true()" type="string"/>
			<bind id="cModuleBox" nodeset="@box" required="false()" type="string"/>
			<bind id="cModuleTitle" nodeset="@title" required="false()" type="string"/>
			<bind id="cModuleLink" nodeset="@link" required="false()" type="string"/>
			<bind id="cLinkType" nodeset="@linkType" required="false()" type="string"/>
			<bind id="cModuleLinkText" nodeset="@linkText" required="false()" type="string"/>
			<bind id="nColumns" nodeset="@cols" required="false()" type="string"/>
			<bind id="bDescriptions" nodeset="@descriptions" required="false()" type="string"/>
		</bind>
		<bind id="cContentBody" nodeset="tblContent/cContentXmlBrief/Content" required="false()" type="string"/>
		<bind id="dPublishDate" nodeset="tblContent/dPublishDate" required="false()" type="string"/>
		<bind id="dExpireDate" nodeset="tblContent/dExpireDate" required="false()" type="string"/>
		<bind id="nStatus" nodeset="tblContent/nStatus" required="true()" type="string"/>
		<bind id="cDescription" nodeset="tblContent/cDescription" required="false()" type="string"/>
		<bind id="bCascade" nodeset="tblContent/bCascade" required="false()" type="string"/>
	</model>
	<group ref="EditContent" class="2col">
		<label>Sitemap module</label>
		<group>
			<group>
				<!-- These hidden fields and bindings are required for the component-->
				<input bind="nContentKey" class="hidden">
					<label>ContentId</label>
				</input>
				<input bind="cModuleType" class="hidden">
					<label>ModuleType</label>
				</input>

				<!-- end of hidden fields -->
				<label>Settings</label>
				<input bind="cPosition" class="readonly">
					<label>Position</label>
				</input>
				<input bind="dPublishDate" class="calendar short">
					<label>Publish date</label>
				</input>
				<input bind="dExpireDate" class="calendar short">
					<label>Expire date</label>
				</input>

				<select1 bind="nStatus" appearance="full" class="required vshort">
					<label>Status</label>
					<item>
						<label>Live</label>
						<value>1</value>
					</item>
					<item>
						<label>Hidden</label>
						<value>0</value>
					</item>
				</select1>
				<select bind="bCascade" appearance="full">
					<label>Cascade to child pages</label>
					<item>
						<label></label>
						<value>true</value>
					</item>
				</select>
			</group>
		</group>
		<group>
			<group>
				<label>Content</label>
				<input bind="cModuleTitle" class="long">
					<label>Title or Name</label>
				</input>
			</group>

			<group class="inline">
				<label>Display Settings</label>
				<select1 bind="cModuleBox" class="boxStyle" appearance="minimal">
					<label>Box style</label>
					<item>
						<label>None</label>
						<value>false</value>
					</item>
					<item>
						<label>Default box</label>
						<value>Default Box</value>
					</item>
				</select1>
				<select1 bind="nColumns" appearance="full" class="required vshort">
					<label>Number of columns</label>
					<item>
						<label>1</label>
						<value>1</value>
					</item>
					<item>
						<label>2</label>
						<value>2</value>
					</item>
					<item>
						<label>3</label>
						<value>3</value>
					</item>
					<item>
						<label>4</label>
						<value>4</value>
					</item>
					<item>
						<label>5</label>
						<value>5</value>
					</item>
				</select1>
				<select bind="bDescriptions" appearance="full">
					<label>Show page descriptions</label>
					<item>
						<label></label>
						<value>true</value>
					</item>
				</select>
			</group>

			<group>
				<label>Module links</label>
				<select1 bind="cLinkType" appearance="full" class="required">
					<label>Type of link</label>
					<item>
						<label>Internal (Going to a page on this site)</label>
						<value>internal</value>
						<toggle case="cLinkType_1" event="DOMActivate"/>
					</item>
					<item>
						<label>External (Going to another site)</label>
						<value>external</value>
						<toggle case="cLinkType_2" event="DOMActivate"/>
					</item>
				</select1>
				<switch class="disable">
					<case id="cLinkType_1">
						<select1 bind="cModuleLink" class="siteTree">
							<label>Link to page</label>
						</select1>
					</case>
					<case id="cLinkType_2">
						<input bind="cModuleLink" class="short">
							<label>Link to URL</label>
						</input>
					</case>
				</switch>
				<input bind="cModuleLinkText" class="long">
					<label>Module footer link text</label>
				</input>
			</group>

		</group>
	</group>
	<group ref="submit" class="contentSubmit">
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Save Sitemap</label>
		</submit>
	</group>
</Content>